#!/usr/bin/python
# -*- coding: utf-8 -*

import sys
from Enums import FileType
from FilesPipLine import FilesPipLine

dir_path = './'  # 路径地址
file_type = FileType.C
# file_type = FileType.Ruby
if len(sys.argv) > 1:
    dir_path = sys.argv[1]
if len(sys.argv) > 2:
    if sys.argv[2].lower() == 'ruby':
        file_type = FileType.Ruby
pip_line = FilesPipLine(dir_path, file_type)
pip_line.start_print(file_type)
